package com.arpa.wms.mapper;

import com.arpa.wms.domain.dto.MoveRegisterDTO;
import com.arpa.wms.domain.entity.MoveRegister;
import com.arpa.wms.domain.vo.MoveRegisterVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 移位明细登记 Mapper 接口
 * </p>
 *
 * @author LEO
 * @since 2020-08-24
 */
public interface MoveRegisterMapper extends BaseMapper<MoveRegister> {

    /**
     * 查询列表
     * @param moveRegsiterDTO
     * @return
     */
    List<MoveRegisterVO> queryList(MoveRegisterDTO moveRegsiterDTO);

    /**
     *  @author: Allen chen
     *  @Date: 2020/11/3 17:20
     *  @Description: 根据明细code查询
     */
    List<MoveRegisterVO> queryByItemCodes(@Param("itemCodes") String itemCodes);
     /**
      *  @author: Allen chen
      *  @Date: 2020/11/3 17:20
      *  @Description: 基本条件查询
      */
    List<MoveRegisterVO> queryByCondition(MoveRegisterDTO moveRegisterDTO);
     /**
      *  @author: Allen chen
      *  @Date: 2020/11/9 21:08
      *  @Description: 根据状态查询
      */
    List<MoveRegisterVO> queryByStatus(MoveRegisterDTO moveRegisterDTO);

    /**
     * 查询合计,包含总数
     * @param moveRegsiterDTO
     * @return
     */
    MoveRegisterVO queryListSum(MoveRegisterDTO moveRegsiterDTO);
     /**
      *  @author: Allen chen
      *  @Date: 2020/11/5 8:56
      *  @Description: 更新移位数量和待移位数量
      */
    int updateQuantity(MoveRegisterDTO moveRegsiterDTO);
     /**
      *  @author: Allen chen
      *  @Date: 2020/11/25 19:46
      *  @Description: 更新已经上架数量  movedQuantity
      */
    int updateiMovedQuantity(MoveRegisterDTO moveRegsiterDTO);


}
